const { mysql } = require('../qcloud')
// item manageer
async function get (ctx, next) {
    const { signature, timestamp, nonce, echostr } = ctx.query
    console.log(ctx.params)
    ctx.body = "the owner is liteng"
    // else ctx.body = 'ERR_WHEN_CHECK_SIGNATURE'
}

async function post (ctx, next) {

    const { signature, timestamp, nonce } = ctx.query
    // if (!checkSignature(signature, timestamp, nonce)) ctx.body = 'ERR_WHEN_CHECK_SIGNATURE'

    const body = ctx.request.body
    console.log(body)
    ctx.body = 'we have info the owner'
}

module.exports = {
    post,
    get
}
